package com._03Interface;

import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @Author WaveHi
 * @Date 4/8/2021 下午 2:41
 * @Version 1.0
 * @Contact HJBWaveHi@163.com
 * @Description 测试接口
 */
public class TestInterface {

    public static void main(String[] args) {

        //获取实例
        ExecutorService e1 = Executors.newFixedThreadPool(20);

        //转
        ThreadPoolExecutor te1 = (ThreadPoolExecutor) e1;

        //设置线程数和闲置时间
        te1.setCorePoolSize(10);



    }

}
